import { toast as hotToast } from 'react-hot-toast'

interface ToastOptions {
  title?: string
  description: string
  variant?: 'default' | 'destructive'
}

export const toast = (options: ToastOptions) => {
  const { title, description, variant = 'default' } = options
  const message = title ? `${title}: ${description}` : description

  if (variant === 'destructive') {
    hotToast.error(message)
  } else {
    hotToast.success(message)
  }
} 